<meta charset="UTF-8">
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js"></script>
<script>
  console.log(_.merge({ name: 'tom' }, { age: 20 }))

  //类F
  class Person {
    //构造函数
    constructor(age, name) {
      Object.assign(this, { age, name })
      // this.age = age
      // this.name = name
    }

    show() {
      console.log(this.name)
    }
  }

  let person = new Person(20, 'tom')

  Person.prototype.getName = function() {
    //console.log(this.name)
  }
  person.getName()
</script>
